#pragma once

#include "Path.h"

class Node{
public:
	Node(Node* parent, float ge, float h, float x, float y):padre(parent),G(ge),H(h),pos(x,y){recalcularCoste();};

	Node *padre;

	float G,H,COSTE;
	posicionTile pos;

	void recalcularCoste(){COSTE = G+H;}
	bool esMasBarato(Node *n){return n->COSTE >= COSTE;}
	};